<!doctype html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <title>promise.html</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
  <h1>常熟市顺杰国际贸易有限公司</h1>
<script type="text/javascript">
  const arr = [1,2,3,5];
  console.log(typeof arr)
  
  const goods = [
    {goods_id: '1001',goods_name:'苹果'},
    {goods_id: '1002',goods_name:'香蕉'}
  ]
  
  const results = goods.map(item => parse2(item));
  console.log(results)
  
  function parse2(item){
    return {
      goodsId: item.goods_id,
      goodsName: item.goods_name
    }
  }
</script>
</body>
</html>